FROM openjdk:8-jdk-alpine
MAINTAINER suizhi
LABEL by=auto-code-cli name=auto-code-cli description="auto-code-cli" version="1.0"
ENV TIME_ZONE Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TIME_ZONE /etc/localtime
RUN mkdir -p /app/
RUN cd /app/
WORKDIR /app/
ADD ./target/auto-code-cli.jar ./auto-code-cli.jar
EXPOSE  8083
ENTRYPOINT ["java", "-jar", "auto-code-cli.jar"]
